package com.xmtlxx.system.mapper;

import com.xmtlxx.common.annotation.DataColumn;
import com.xmtlxx.common.annotation.DataPermission;
import com.xmtlxx.common.core.domain.entity.SysTagCheckitem;
import com.xmtlxx.common.core.mapper.BaseMapperPlus;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xmtlxx.system.domain.bo.SysTagCheckitemBo;
import com.xmtlxx.system.domain.vo.SysTagCheckitemVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 标签与检查项关联Mapper接口
 *
 * @author xmtlxx
 * @date 2022-04-26
 */
public interface SysTagCheckitemMapper extends BaseMapperPlus<SysTagCheckitemMapper, SysTagCheckitem, SysTagCheckitemVo> {
    /**
     * 根据条件分页查询标签与检查项关联
     *
     * @param sysTagCheckitemBo 标签与检查项关联
     * @return Page SysTagCheckitem
     */
    @DataPermission({
        @DataColumn(key = "tenantName", value = "s.create_by"),
        @DataColumn(key = "deptName", value = "s.create_by"),
        @DataColumn(key = "userName", value = "s.create_by")
    })
    Page<SysTagCheckitem> selectPageSysTagCheckitemList(@Param("page") Page<SysTagCheckitem> page,@Param("sysTagCheckitem") SysTagCheckitemBo sysTagCheckitem);

    /**
     * 查询标签与检查项关联列表
     *
     * @param sysTagCheckitemBo 标签与检查项关联
     * @return 标签与检查项关联集合
     */
    List<SysTagCheckitem> selectSysTagCheckitemList(SysTagCheckitemBo sysTagCheckitem);
}
